#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
	int a[12], * p;
	p = a;
	for (int i = 0; i < 12; i++) {
		scanf("%d", p);
			p++;
	}
	p = a;
	for (int j = 0; j < 12; j++) {
		printf("%d ", *p);
		if ((j + 1) % 4 == 0) {
			printf("\n");
		}
		p++;
	}
	return 0;
}